<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- <!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta content="width=device-width; initial-scale=1; maximum-scale=1" name="viewport">
<title>一款功能强大的jquery评分插件jquery.raty-dwtedx个人博客</title>

<link type="text/css" rel="stylesheet" href="demo/css/application.css">
<script type="text/javascript" src="demo/js/jquery.min.js"></script>
<script type="text/javascript" src="lib/jquery.raty.min.js"></script>
</head>
<body> -->
<%-- <link type="text/css" rel="stylesheet" href="${ root}/jslib/raty/demo/css/application.css"> --%>
<script type="text/javascript" src="${ root}/jslib/raty/demo/js/jquery.min.js"></script>
<script type="text/javascript" src="${ root}/jslib/raty/lib/jquery.raty.min.js"></script>
<p class="product-detail-info" style="display: inline-block; ">
 Credibility：<div id="shopPraise" style="display: inline-block; vertical-align: middle;"title="${shop.shopAllCredibility }分"></div>
    <span style="color:red; margin-left:10px;">
    	<c:if test="${not empty shop.shopAllCredibility }">
    		<fmt:formatNumber type="number" pattern="###.#">${shop.shopAllCredibility }</fmt:formatNumber>points
    	</c:if>
    </span>
</p>
<script type="text/javascript">
    $(function() {
      //$.fn.raty.defaults.path = 'lib/img';
      $('#shopPraise').raty({
	  	number: 5,//多少个星星设置	
	  	targetType: 'number',//类型选择，number是数字值，hint，是设置的数组值		
        path      : '${ root}/jslib/raty/demo/img',//星星图片路径
        cancelOff : 'cancel-off-big.png',
        cancelOn  : 'cancel-on-big.png',
        size      : 24,
        starHalf  : 'star-half-big.png',
        starOff   : 'star-off-big.png',
        starOn    : 'star-on-big.png',
        cancel    : false,
        targetKeep: true,
        precision : false,//是否包含小数
        readOnly:  true,
  		score: ${shop.shopAllCredibility }//设置值
      });    
	  
	 
    });

  
  </script>
